package com.auxgroup.smarthome.inner.repo;

import com.auxgroup.smarthome.inner.entity.AppIndexPageEntity;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Created by niuGuangzhe on 2017/8/2.
 */
public interface AppIndexPageEntityRepo extends JpaRepository<AppIndexPageEntity, String> {

    //根据版本查找实体类
    AppIndexPageEntity findFirstByVersion(String version);

    //根据主键查找
    AppIndexPageEntity findByIndexPageId(String indexPageId);

    //根据发布查找
    AppIndexPageEntity findByStatus(Integer status);


}
